package web

// 首页内容管理
var Home = homeService{}

type homeService struct{}

/*
func (p *homeService)Content()(dao.HomeContentResult,error){

}

//获取首页广告
func (p *homeService)getHomeAdvertiseList()([]dao.SmsHomeAdvertise,error){
	return dao.SmsHomeAdvertiseDao.GetList(1,1)
}

//获取秒杀信息
func (p *homeService)getHomeFlashPromotion()(dao.HomeFlashPromotion,error){
	//获取当前秒杀活动
}
//根据时间获取秒杀活动
func (p *homeService)getFlashPromotion(date string)(dao.SmsFlashPromotion,error){
	//获取当前秒杀活动
	item, err := dao.SmsFlashPromotionDao.GetItem(date)
	if len(item) >0 {
		return item[0], nil
	}
	return item[0],err
}


//获取推荐品牌
func (p *homeService)getRecommendBrandList()([]dao.SmsHomeAdvertise,error){

}
//获取新品推荐
func (p *homeService)getNewProductList()([]dao.SmsHomeAdvertise,error){

}
//获取人气推荐
func (p *homeService)getHotProductList()([]dao.SmsHomeAdvertise,error){

}
//获取推荐专题
func (p *homeService)getRecommendSubjectList()([]dao.SmsHomeAdvertise,error){

}*/
